<?php include_once('../layouts/header.php') ?>
<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'center',split:true,border:false">
        <div class="container">
            <fieldset><legend><code>单选框 radio</code></legend></fieldset>
            <form id="form-radio"
             data-options="
                form:{
                    url:'/data/index.php?type=test',
                    id:'#form-radio',
                },
             ">
                <div class="form-box sm-form">
                    <div class="form-item row">
                        <div class="form-input col-12">
                            <label class="form-label"><span>民族(原生)：</span></label>
                            <?php 
$clans = ['汉族','瑶族','拉祜族','撒拉族','京族','珞巴族','彝族','畲族','水族','塔吉克族','土家族','傣族','仫佬族','乌兹别克族','壮族','朝鲜族','锡伯族','基诺族','门巴族','布朗族','满族','蒙古族','白族','傈僳族','佤族','柯尔克孜族','阿昌族','德昂族','鄂伦春族','回族','藏族','哈尼族','仡佬族','纳西族','达斡尔族','普米族','保安族','独龙族','苗族','布依族','哈萨克族','东乡族','羌族','景颇族','鄂温克族','俄罗斯族','塔塔尔族','维吾尔族','侗族','黎族','高山族','土族','毛南族','怒族','裕固族','赫哲族',];
                             ?>
                             <?php foreach ($clans as $clan): ?>
                                <label class="form-label form-checkbox"><input type="radio" name="clan"><span class="checkbox-text"><?=$clan ?></span></label>
                             <?php endforeach ?>
                        </div>
                    </div>
                    <div class="form-item row">
                        <div class="form-input col-12">
                            <label class="form-label"><span>民族(easyui)：</span></label>
                            <?php foreach ($clans as $clan): ?>
                                <label class="form-label form-checkbox">
                                    <input class="easyui-radiobutton" name="fruit" data-options="label:'<?=$clan ?>',value:'<?=$clan ?>'">
                                </label>
                             <?php endforeach ?>
                        </div>
                    </div>
                </div>
                <button type="button" class="btn btn-primary btn-block" onclick="$.submitForm(this)">保存</button>
            </form>
        </div>
    </div>
</div>

<?php include_once('../layouts/footer.php') ?>